home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr02
/
ams520.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-03-06
|
5KB
|
183 lines
@echo off
if A==%1 goto doit
if B==%1 goto doit
if C==%1 goto doit
if D==%1 goto doit
if E==%1 goto doit
if F==%1 goto doit
if G==%1 goto doit
if H==%1 goto doit
if I==%1 goto doit
if J==%1 goto doit
if K==%1 goto doit
if L==%1 goto doit
if M==%1 goto doit
if N==%1 goto doit
if O==%1 goto doit
if P==%1 goto doit
if Q==%1 goto doit
if R==%1 goto doit
if S==%1 goto doit
if T==%1 goto doit
if U==%1 goto doit
if V==%1 goto doit
if W==%1 goto doit
if X==%1 goto doit
if Y==%1 goto doit
if Z==%1 goto doit
if a==%1 goto doit
if b==%1 goto doit
if c==%1 goto doit
if d==%1 goto doit
if e==%1 goto doit
if g==%1 goto doit
if h==%1 goto doit
if i==%1 goto doit
if j==%1 goto doit
if k==%1 goto doit
if l==%1 goto doit
if m==%1 goto doit
if n==%1 goto doit
if o==%1 goto doit
if p==%1 goto doit
if q==%1 goto doit
if r==%1 goto doit
if s==%1 goto doit
if t==%1 goto doit
if u==%1 goto doit
if v==%1 goto doit
if w==%1 goto doit
if x==%1 goto doit
if y==%1 goto doit
if z==%1 goto doit
goto goof1
:doit
if exist %1:\ams\amsfaaaa.dbf goto goof2
cls
ECHO.
ECHO ACTION MANAGEMENT SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO Welcome to the Action Management System!
ECHO.
ECHO This batch file installs the Action Management System. It will create
ECHO a directory, \AMS, on disk drive %1 which you have designated. It will then
ECHO install the program files in the new directory. A batch file named AMS.BAT
ECHO will be placed in the root directory to start AMS. Finally it will start
ECHO AMS and ask a few questions to configure the program for your computer
ECHO system and then enter the AMS program. The AMS program may be started from
ECHO the DOS prompt by typing the following:
ECHO.
ECHO. AMS
ECHO.
ECHO If you want to terminate the installation process press (Ctrl) and (C) to
ECHO exit to DOS otherwise press any other key to continue.
ECHO.
ECHO.
ECHO.
PAUSE
CLS
ECHO.
ECHO.
ECHO THE ACTION MANAGEMENT SYSTEM IS BEING INSTALLED.
@ REM ---Installation routine
md %1:\ams
copy amss.exe %1:\ams
copy amsf.dbf %1:\ams\amsfaaaa.dbf
copy amsf.dbf %1:\ams\amsfhhhh.dbf
copy amsp.dbf %1:\ams\amsfpppp.dbf
copy amst.dbf %1:\ams\amsftttt.dbf
copy amsw.dbf %1:\ams\amsfaaa1.dbf
copy amsw.dbf %1:\ams\amsfhhh1.dbf
copy amsw.dbf %1:\ams\amsfppp1.dbf
copy amsdem??.* %1:\ams
copy amsfhelp.dbf %1:\ams\amsfhelp.dbf
if exist %1:\ams\stdfw001.dbf goto dicams
copy stdfw00?.dbf %1:\ams\amsfw00?.dbf
goto dic
:dicams
ren %1:\ams\stdfw00?.dbf amsfw00?.dbf
:dic
copy ams.ico %1:\ams
copy ams.pif %1:\ams
copy ams.bat %1:\
%1:
cd %1:\ams
AMSS.EXE
if exist %1:\ams\config.ams goto config
cd \
cls
ECHO.
ECHO.
ECHO THE ACTION MANAGEMENT SYSTEM HAS BEEN SUCCESSFULLY INSTALLED.
goto end
@ REM ---Goof 1 - No Target drive designated
:goof1
cls
ECHO.
ECHO ACTION MANAGEMENT SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO.
ECHO This batch file installs the Action Management System. To start the
ECHO installation process you must designate a drive into which AMS will be
ECHO installed. This is accomplished by entering the install command followed
ECHO by the letter designating the drive into which AMS to to be installed.
ECHO To install AMS on drive C and the installation enter the following
ECHO command at the DOS prompt:
ECHO.
ECHO INSTALL C
ECHO.
ECHO.
PAUSE
CLS
goto end
@ REM ---Goof 2 - AMS already installed on target
:goof2
cls
ECHO.
ECHO ACTION MANAGEMENT SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO.
ECHO Disk drive %1 was designated as the drive onto which AMS is to be
ECHO install however AMS is already installed on %1 drive. If AMS is
ECHO being updated the program may be updated on drive C for example by
ECHO entering:
ECHO.
ECHO UPDATE C
ECHO.
ECHO The update process will preserve your current data files but update
ECHO the program files. Otherwise select another drive or erase the AMS
ECHO files on drive %1 and start the install program again.
ECHO.
ECHO.
PAUSE
CLS
goto end
:config
copy %1:\config.sys %1:\config.old
copy %1:\ams\config.ams %1:\config.sys
erase %1:\ams\config.ams
CLS
ECHO.
ECHO ACTION MANAGEMENT SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO.
ECHO The Action Management System files have been installed on disk drive %1.
ECHO Also the CONFIG.SYS file has been updated. You must now reboot your
ECHO computer. After rebooting your computer start AMS by entering:
ECHO.
ECHO AMS
ECHO.
ECHO After restarting AMS you will be asked to answer a few questions to
ECHO complete the installation process.
ECHO.
ECHO.
PAUSE
CLS
goto end
:end
@echo on